package practise3;

public abstract class Animal {
    private String name;
    private int legnum;

    public String getName() {
        return name;
    }

    public int getLegnum() {
        return legnum;
    }

    public Animal(String name, int legnum){
        this.name=name;
        this.legnum=legnum;
    }
   public abstract void shout();
}
